package x.trident.banner;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringApplicationRunListener;


/**
 * 类的功能
 *
 * @author 林选伟
 * @date 2021/8/29 1:25 下午
 */
@Slf4j
public class ApplicationRunListenerAspect implements SpringApplicationRunListener {

    private final SpringApplication application;

    public ApplicationRunListenerAspect(SpringApplication application, String[] args) {
        this.application = application;
    }

    public void starting() {
        application.setBanner(new CustomBanner());
    }

}